Record Mode

One feature of X-Setup Pro that Network Administrators may find useful is the so called Record Mode. If this mode is activated, X-Setup Pro will record most of the system changes you make to a REG file. This file can then be transferred to a different machine and added to the registry by simply double-clicking this file, a great time-saver if you want to make the same changes to several machines.

How it works

If you apply the changes of a plugin by clicking on the "Apply changes", all changes the plugin makes are monitored and saved to an internal buffer. For example, if you start the "Super ACME Plugin", activate "Fast Gate A20 Option" and click apply, the plugin writes "FastGate=1" to the registry. Because Record Mode is currently activated, X-Setup Pro will write "FastGate=1" to its internal buffer.

As soon as you stop recording, X-Setup Pro (by de-activating record mode),  will generate a Save As dialog, where you can specify a filename and destination folder. Note: X-Setup Pro will generate the file with the extension *.TXT because you should read the contents of the file before using it. After renaming it to *.REG it is ready to use.

Benefits

Record Mode can save you a lot of time. For example, if you want to make changes on several machines, instead of installing X-Setup Pro on every machine and then applying the changes, you can create a single *.REG file and merge it into the registries on all machines. That way, you save a lot of time and you can be sure that all machines have been changed in the same way.

Drawbacks

Although this is a real powerful feature, it has some drawbacks:

Enabling Record Mode

To enable Record Mode, open up the default user interface (Classic mode) from the X-Setup Pro welcome screen. Then open the File menu and choose 'Record Mode'. Alternatively, you can click the Record Mode button on the Toolbar. Once Record Mode is enabled, the Record Mode icon on the Toolbar will appear depressed.

When you want to finish recording, repeat the steps mentioned above. Note that Record Mode also works in Wizard mode as well, but you can only enable or disable it in the Classic mode.

Applying the REG file

To apply the generated REG file to a machine, do the following:

Note: Normally using this regedit /S command will work but it may fail if you want to change a system setting from a user account that hasn't got "Administrator" privileges on Windows 2000 or NT 4.0.

A system setting is anything in the HKEY_LOCAL_MACHINE or HKEY_CLASSES_ROOT hives in the Registry. If you system is "locked down", then this means that the current user has no rights to modify any values in these hives, and executing REGEDIT.exe will display an error message, such as "Not all values could be imported".

To solve this you can use the runas command in Windows 2000. For example:

runas /user:Administrator "regedit.exe /S c:\test.reg"

This will then ask you for an admin password, and then switch the context to ADMINISTRATOR and execute the command. As the user ADMINISTRATOR has all privileges, the command will succeed.

Please note that if you use this command to import a file that makes changes below HKEY_CURRENT_USER, it will affect the ADMINISTRATOR account, not the current user, since RUNAS performs a context switch.

More information about RUNAS in Windows 2000 can be found in the Microsoft Knowledge base at support.microsoft.com/support/kb/articles/Q225/0/35.ASP.

As NT 4.0 has no RUNAS command, you will need to install a program that is able to perform a context switch. One example is "SU" from the Microsoft Windows NT 4.0 Resource Kit or "NTSU" (Freeware, search for it using Google.com). Please see the documentation of these tools how to execute a command as ADMINISTRATOR.

Changing Record Mode options

You can also change the default output folder for files you have created using Record Mode by using the Options dialog. For more information  please see the Options dialog topic.